# @Time  :2021/5/27 22:11
# @Author: Houtaroy
from flask_jwt_extended import JWTManager

from flask_koala.system.models import User

jwt = JWTManager()


@jwt.user_identity_loader
def user_identity_lookup(user: User) -> User:
    return user
